<div style="clear:both;" class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'detail-form',
	'enableAjaxValidation'=>false,
)); ?>
 <div class="grid-view">
	<?php echo $form->errorSummary($model); ?>
	<div style="float:left;width:130px">
		<?php echo $form->dropDownList($model,'type',Detail::$TYPES); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>
	<div style="float:left;width:70px">
		<?php echo $form->textField($model,'min',array('size'=>4,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'min'); ?>
</div>
<div style="float:left;width:120px">
		<?php echo $form->textField($model,'player',array('size'=>15,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'player'); ?>
	</div>
	<div style="float:left;width:120px">
		<?php echo $form->textField($model,'comment',array('size'=>15,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'comment'); ?>
	</div>
	<div style="float:left;width:130px">
		<?php echo $form->dropDownList($model,'side',Detail::$SIDE); ?>
		<?php echo $form->error($model,'side'); ?>
		</div>
		<div style="float:left;width:30px">
		<?php echo $form->checkBox($model,'deleted'); ?>
		<?php echo $form->error($model,'deleted'); ?>
		</div>
<div style="float:left;width:70px">
  <?php echo $form->hiddenField($model,'match_id')?>
  <?php echo $form->hiddenField($model,'_id')?>
		<?php echo CHtml::ajaxSubmitButton($model->_id?'*Edit':'Add', 
		Yii::app()->urlManager->createUrl('detail/ajaxAdd'),
		array(
		'success'=>'function(data){
			$("#timeline").replaceWith(data)
			}
		',
		''
		),
		array()
		); ?>
</div>
<?php $this->endWidget(); ?>
</div>
</div><!-- form -->
